package com.game;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class DrawImageView extends View {

	public DrawImageView(Context context) {
		super(context);
	}

	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		Bitmap bm = BitmapFactory.decodeResource(getResources(),R.drawable.tile);
		canvas.clipRect(0,0, 32, 32);
		canvas.drawBitmap(bm,-100, -100, new Paint());
	}
	
}
